#include "glViewport.h"

void glSetViewport(const GL_VIEWPORT_DESC * pVp)
{
    if (pVp == NULL)
        return;

    glViewport(pVp->TopLeftX, 
               pVp->TopLeftY,
               pVp->Width,
               pVp->Height   );

    glDepthRange(pVp->MinDepth,
                 pVp->MaxDepth);
}